|
XMT-O Reference Software | ||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||
java.lang.Object
|
+--xmto2xmta.MapRoot
|
+--xmto2xmta.mapxmtamedia.XmaXmtaMedia
Class to group together the various type of media elements.
History:
| Field Summary | |
private static boolean |
debug_
Whether debug information is to be printed to the console. |
private xmtaMedia |
treeXmtaMediaElement_
|
private java.util.ResourceBundle |
xmto2XmtaRes_
|
| Fields inherited from class xmto2xmta.MapRoot |
treeElement_, xmto2xmta_ |
| Constructor Summary | |
XmaXmtaMedia()
|
|
| Method Summary | |
private void |
addCmds(org.w3c.dom.Element xmtaElement)
This will go through the cmds element in the xmtaMedia adding the elements to the xmta tree element. |
private void |
addNodes(org.w3c.dom.Element xmtaElement)
This will go through the nodes element in the xmtaMedia adding the elements to the xmta tree element. |
private void |
copy(org.w3c.dom.Node input,
org.w3c.dom.Node output)
|
private boolean |
createCmdsMapping(TimingAttribute insertTime)
Create the infrastructure to add the nodes' elements in an insert into the scene structure. |
private boolean |
createContainerMapping(java.lang.String parentOrderedGroupId,
boolean parentUsePositions,
java.lang.String groupId,
java.lang.String touchSensorId,
java.lang.String containerId,
TimingAttribute insertTime)
Create the xmtaMedia Element infrastructure. |
protected boolean |
createDeleteMapping(ELASid elasId)
Create the media Element infrastructure. |
protected boolean |
createInsertMapping(ELASid elasId)
Create the xmtaMedia Element infrastructure. |
private boolean |
createNodesMapping(java.lang.String containerId,
TimingAttribute insertTime)
Create the infrastructure to add the nodes' elements in an insert into the scene structure. |
void |
doMapping()
|
private boolean |
doTimingMapping()
|
void |
init(Xmto2Xmta xmto2xmta,
ConvertElement element)
|
static void |
setDebug(boolean debug)
Enable debugging information to be printed to the console. |
| Methods inherited from class xmto2xmta.MapRoot |
fireErrorEvent, fireErrorEvent, fireErrorEvent, getConvertElement |
| Methods inherited from class java.lang.Object |
|
| Field Detail |
private static boolean debug_
private xmtaMedia treeXmtaMediaElement_
private java.util.ResourceBundle xmto2XmtaRes_
| Constructor Detail |
public XmaXmtaMedia()
| Method Detail |
private void addCmds(org.w3c.dom.Element xmtaElement)
private void addNodes(org.w3c.dom.Element xmtaElement)
private void copy(org.w3c.dom.Node input,
org.w3c.dom.Node output)
private boolean createCmdsMapping(TimingAttribute insertTime)
<par begin="???">
***** xmta elmements under the <cmds> element. *****
</par>
private boolean createContainerMapping(java.lang.String parentOrderedGroupId,
boolean parentUsePositions,
java.lang.String groupId,
java.lang.String touchSensorId,
java.lang.String containerId,
TimingAttribute insertTime)
The infrasturcture requires adding the elements to the BIFS scene requires creating a container to add all the elements in the xmt-o nodes element. Since we are in a 2D context if the xmtaMedia element is 3D then make the container element a Layer3D so that we can switch to a 3D context. If the xmtaMedia element isn't 3D just create a Group as the container.
<par begin="???">
<Insert atNode="???">
<Group DEF="???">
<children>
<TouchSensor DEF="???" enabled="false">
<Group DEF="???"/> OR <Layer3D DEF="???"/>
</children>
</Group>
</Insert>
<Insert atField="order" atNode="???" position="END" value="-1"/>
</par>
protected boolean createDeleteMapping(ELASid elasId)
<par begin="???">
<Delete atNode="???"/>
<Delete atField="order" atNode="???"/>
</par>
protected boolean createInsertMapping(ELASid elasId)
private boolean createNodesMapping(java.lang.String containerId,
TimingAttribute insertTime)
<par begin="???">
<Insert atNode="???">
***** xmta elmements under the <nodes> element. *****
</Insert>
</par>
public void doMapping()
private boolean doTimingMapping()
public void init(Xmto2Xmta xmto2xmta,
ConvertElement element)
throws java.lang.Exception
init in class MapRootpublic static void setDebug(boolean debug)
debug - sets debug information is printed
|
XMT-O Reference Software | ||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||